package org.rain.bee.controller;

import java.security.Principal;

import org.rain.bee.service.impl.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class LoginController {
	
	//@Autowired
	private UserService userService;

	@RequestMapping(value="/login")
	public String user(Principal user) {
		return "login";
	}
	
	@RequestMapping("/ab")
	@ResponseBody
	public Principal user2(Principal user) {
		return user;
	}
	
}
